'use strict';

const Controller = require('egg').Controller;

class SingercollectController extends Controller {
  async index() {
    const { ctx } = this;
    var db = this.app.mongodb;
    var res = await db.collection("singer").find().toArray()
    ctx.body = res
  }
}

module.exports = SingercollectController;
